package com.admin.base;

/**
 * 异常枚举类
 *
 * @author : alex
 * @date : 2020/5/23
 */
public enum ResponseType {
    //订单异常
    NON_EXISTENT_ORDER(10001, "订单不存在"),
    SIGN_ERROR(10002, "签名错误"),
    SYSTEM_ERROR(10003, "系统异常"),
    ACCOUNT_ERROR(10005, "用户名或密码错误"),
    ACCOUNT_DISABLED(10006, "用户已冻结");

    private Integer code;
    private String msg;

    ResponseType(Integer code, String msg) {
        this.code = code;
        this.msg = msg;
    }

    public Integer getCode() {
        return code;
    }

    public void setCode(Integer code) {
        this.code = code;
    }

    public String getMsg() {
        return msg;
    }

    public void setMsg(String msg) {
        this.msg = msg;
    }

}
